#ifndef __TOOLS__
#define __TOOLS__

typedef struct Dict_data{
    char *file_name;
    char *Version;
    char *Name;
    char *Name_ru;
    char *Comment;
    char *Comment_ru;
    char *Exec;
    char *Icon;
    char *Terminal;
    char *Type;
    char *Categories;
    char *StartupNotify;
    char *X_XfcePluggable;
    char *OnlyShowIn;
    char *X_XfceHelpPage;
    char *X_UBLHelpPage;
} Struct_data;
void file_read(char *file_name);
char *copy_str(char *name, char *text, int len_str);
void write_data(char *name, char *value,char len_slice , int index);
void print_info_ru(int index);
void print_info_en(int index);
Struct_data get_data(int index);
void menu();
int len_struct();
void execute(char * link);
void python_main();
void freeStruct();
void format_data(char *text, int index);
void struct_memori();
void  array_file();
char* concat(char *s1, char *s2);
int  count_file();

const char *Version = "Version";
const char *Name = "Name";
const char *Name_ru = "Name[ru]";
const char *Comment = "Comment";
const char *Comment_ru = "Comment[ru]";;
const char *Exec = "Exec";
const char *Icon = "Icon";
const char *Terminal = "Terminal";
const char *Type = "Type";
const char *Categories = "Categories";
const char *StartupNotify = "StartupNotify";
const char *OnlyShowIn = "OnlyShowIn";
const char *X_XfcePluggable = "X-XfcePluggable";
const char *X_XfceHelpPage = "X-XfceHelpPage";
const char *X_UBLHelpPage = "X-UBLHelpPage";

const char *searhc_simvol = "=";
int count_f = 0;
char path[]  = "/home/arksm/ubl-settings-manager/applications/";

#endif